<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>

		<h1>1~10循环</h1>
		<script>
			for (var i = 1; i <= 10; i++) {
				document.write(i);
				document.write("<br />")
			}
		</script>

		<h1>continue</h1>
		<script>
			for (var i = 1; i <= 10; i++) {
				if (i == 5) // i%2==0 	 i%2!=0
				{
					continue;
				}
				document.write(i);
				document.write("<br />")
			}
		</script>

		<h1>break</h1>
		<script>
			for (var i = 1; i <= 10; i++) {
				if (i == 5) {
					break;
				}
				document.write(i);
				document.write("<br />")
			}
		</script>
	</body>
</html>
